#include <REGX52.H>
#include"DS18B20.h"
#include"LCD1602.h"
#include"Delay.h"
float a;
void main()
{
	O_S();
	Delay(1000);
	LCD_Init();
	LCD_ShowString(1,1,"Temperature:");
 	while(1)
	{
		O_S();
		a=O_R();
		if(a<0)
		{
			LCD_ShowString(2,1,"-");
			a=-a;
		}
		else
		{
			LCD_ShowString(2,1,"+");
		}
		LCD_ShowNum(2,2,a,3);
		LCD_ShowChar(2,5,'.');
		LCD_ShowNum(2,6,(unsigned long)(a*10000)%10000,4);
	}
}